package com.hilatest.osgiexample.bundle.OsgiBundle;


import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activitor implements BundleActivator {


	
	public void start(BundleContext context) throws Exception {
		System.out.println("bundle start!");
		
		/**
		 * 系统默认的属性
		 * org.osgi.framework.version       OSGi framework version
		   org.osgi.framework.vendor        Framework implementation vendor
           org.osgi.framework.language      Language being used; see ISO 639 for possible values
           org.osgi.framework.os.name       Host computer operating system
           org.osgi.framework.os.version    Host computer operating system version number
           org.osgi.framework.processor     Host computer processor name
		 */
		String version = context.getProperty("org.osgi.framework.version");	
		System.out.println("org.osgi.framework.version:"+version);
	}

	public void stop(BundleContext context) throws Exception {
		System.out.println("bundle stop!");
	}

}
